package com.common.utils.tools.result;

public class ServiceResult {

    Boolean success;

    String returnMsg;

    ServiceResult(Boolean success, String returnMsg) {
        this.success = success;
        this.returnMsg = returnMsg;
    }

    public static ServiceResult ok(Boolean success, String returnMsg){
        return new ServiceResult(success,returnMsg);
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }
}
